package service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import dao.InfoDao;
import pojo.Info;
import service.InfoManager;

@Service("manager")
public class InfoManagerImpl implements InfoManager{
	@Resource(name="infoDao")
	private InfoDao infoDao;

	@Override
	public Info addInfo(Info info) {
		return infoDao.addInfo(info);
	}

	@Override
	public Info findInfo(String name) {
		return infoDao.findInfo(name);
	}

}
